-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable GCP native fencing #271
Conversation
88827de
to
0134153
Compare
0134153
to
116ddd7
Compare
116ddd7
to
effe2a8
Compare
effe2a8
to
123a69a
Compare
123a69a
to
4f98e47
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -233,6 +233,14 @@ | |||
params tag={{ aws_stonith_tag}} pcmk_delay_max=15 | |||
when: cloud_platform_is_aws | |||
|
|||
- name: Set primary and secondary hostnames | |||
ansible.builtin.set_fact: | |||
primary_hostname: "{{ groups['hana'][0] }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use similar query to calculate is_primary
. Differences are:
- all of them calculate it ad playbook level and not at task level
- other places are using
group.hana[0]
- other places are using a combination like:
hosts: hana
vars:
is_primary: "{{ ansible_play_hosts[0] == inventory_hostname }}"
Let's keep it like this here but revisit it everywhere in all files.
@@ -4,6 +4,9 @@ all: | |||
use_sbd: ${use_sbd} | |||
gcp_cluster_ip: ${hana-vip} | |||
prefix: ${name_prefix} | |||
project: ${gcp_project} | |||
primary_zone: ${gcp_primary_zone} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to the other comment, we can think about moving them to hosts>>hana section of the playbook
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally LGTM.
This PR enables GCP native fencing, by passing the required variables from terraform to ansible and adding the gcp-specific stonith commands for ansible.
Verification Run
GCP
Native fencing
SBD
GCP SBD: http://openqaworker15.qa.suse.cz/tests/296342
AWS
AWS Native: http://openqaworker15.qa.suse.cz/tests/296341
AZURE
AZURE MSI: http://openqaworker15.qa.suse.cz/tests/296343